package com.lagou.miaosha.rocketmq.service;

import com.lagou.miaosha.rocketmq.pojo.Stock;

import java.util.List;

/**
 * @Description TODO
 * @Classname IStockService
 * @Date 2021/8/1 17:40
 * @Author ch'ien
 */
public interface IStockService {

    Integer getStockCount(Integer sid);

    Stock getOneByGid(Integer gid);

    void decrement(Integer gid);

    void increment(Integer gid);

    void decrementStock(Integer gid);
    void incrementStock(Integer gid);

    List<Stock> getList();
}
